import request from "@/utils/request";
var baseUrl = '/user/read/'

export function getAllRead(page,size,find,tagId) {
  return request({
    url: baseUrl+'findAllRead',
    method: 'post',
    params: {page,size,find,tagId}
  })
}

export function loveRead(readId) {
  return request({
    url: baseUrl+'love',
    method: 'post',
    params: {readId}
  })
}

export function collectionRead(readId) {
  return request({
    url: baseUrl+'collection',
    method: 'post',
    params: {readId}
  })
}

export function findDetailRead(readId) {
  return request({
    url: baseUrl+'findDetailRead',
    method: 'post',
    params: {readId}
  })
}

export function getLast() {
  return request({
    url: baseUrl+'find/lastHeat',
    method: 'get'
  })
}
